harvest Account Balances
fun harvestAccountBalances(book: AccountBook, accounts: List<Account>?, accountFilter: AcctFilter?, balanceType: Account.BalanceType): NetWorthCalculator.AccountBalancesByAsOfDates
Harvest current / future balances for various accounts. The balance(s) will be stored in the account's currency.
Performance considerations: This method does not scan transactions and simply processes each account once to retrieve it's balance. Performance: O(A), where A = number of accounts - very fast and suitable for near real-time use.
Since
MD2027
Return
Returns an AccountBalancesByAsOfDates object holding accounts and their respective current / future balances in the account's currency.
Parameters
book
The account book.
accounts
An optional list of accounts to obtain the balance(s) for (or use accountFilter).
account Filter
An optional filter to find the accounts to obtain the balance(s) for (or use accounts).
balance Type
The balance type to harvest.